package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author ldy
 */
public enum InvoiceExceptionEnum implements IResponseEnum {
    /**
     * 报错信息
     */
    NO_LOGIN(500, "未登录"),
    ORDER_SN_ERROR(500, "未获取到订单编号"),
    ORDER_OID_ERROR(500, "未获取到订单id"),
    INVOICE_INFO_ERROR(500, "开票信息查询失败"),
    INVOICE_INVOICE_ERROR(500, "发票信息未空"),
    INVOICE_IMG_ERROR(500, "发票图片地址不能为空"),
    INVOICE_RED_ERROR(500, "未获取到发票id"),
    INVOICE_ORDER_ERROR(200, "未查询到该订单发票信息！"),
    INVOICE_INFO_NULL(200, "开票信息为空！"),
    INVOICE_UID_NULL(500, "用户信息为空！"),
    INVOICE_UID_HEAD_TYPE_NULL(500, "发票抬头类型为空！"),
    INVOICE_UID_HEAD_INSERT_ERROR(500, "发票抬头添加失败！"),
    INVOICE_HEAD_TYPE_NULL(500, "发票类型为空！"),
    INVOICE_UID_DUTY_NULL(500, "发票税号为空！"),
    INVOICE_AMOUNT_NULL(500, "发票金额为空！"),
    INVOICE_AMOUNT_ERROR(500, "发票金额查询失败！"),
    INVOICE_STRING_INT(500, "抬头id转类型失败！"),
    INVOICE_UID_ISDEFUALT(500, "发票设置默认修改失败！"),
    INVOICE_UID_INSERT_LIST(500, "发票列表添加失败！"),
    INVOICE_UID_EDIT_LIST(500, "发票修改失败！"),
    INVOICE_UID_TITLE_LIST(500, "发票抬头修改失败！"),
    INVOICE_USER_TITLE_ERROR(500, "用户抬头添加失败！"),
    INVOICE_USER_ORDER_STATUS_ERROR(500, "用户订单状态为空！"),
    INVOICE_EXPLODE_ERROR(500, "请先选择搜索条件！"),
    STATUS_CASH_FAILED(500, "提现失败");

    private Integer code;
    private String message;

    InvoiceExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
